import java.rmi.Naming;

public class A05_FactorialRecursionDemo {
    public static void main(String[] args) {
        int jc = getFactorialRecursion(5);
        System.out.println(jc);
    }

    public static int getFactorialRecursion(int i) {
        if (i == 1) {
            return 1;
        }
        return i * getFactorialRecursion(i-1);
    }
}
